package net.hn.hnms.biz.analysis.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import lombok.extern.slf4j.Slf4j;
import net.hn.hnms.biz.analysis.domain.CoalSpontaneousCombustionAlarm;
import net.hn.hnms.biz.analysis.domain.OffDutyRecord;
import net.hn.hnms.biz.analysis.domain.dto.*;
import net.hn.hnms.biz.analysis.domain.vo.SensorMonitorVo;
import net.hn.hnms.biz.analysis.mapper.SafetyMapper;
import net.hn.hnms.biz.analysis.service.ISafetyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
@Slf4j
@DS("safety")
public class SafetyServiceImpl implements ISafetyService {

    @Resource
    private SafetyMapper safetyMapper;

    @Override
    public List<SensorMonitorDto> getHisSensorMonitor(SensorMonitorVo svo) {
        return safetyMapper.getHisSensorMonitor(svo);
    }

    @Override
    public int getOvercrowdData(String beginTime, String endTime, String code) {
        return safetyMapper.getOvercrowdData(beginTime, endTime, code);
    }

    @Override
    public int getLeaderOnDuty(String beginTime, String endTime, String code) {
        return safetyMapper.getLeaderOnDuty(beginTime, endTime, code);
    }

    @Override
    public List<HisSensorAlarmDto> getHisSensorAlarm(String beginTime, String endTime, String code) {
        return safetyMapper.getHisSensorAlarm(beginTime, endTime, code);
    }

    @Override
    public int getVentilatorOffineStatus(String beginTime, String endTime, String code) {
        return safetyMapper.getVentilatorOffineStatus(beginTime, endTime, code);
    }

    @Override
    public List<String> getSenorCablirationAlarm(String begin15Time, String end15Time, String code) {
        return safetyMapper.getSenorCablirationAlarm(begin15Time, end15Time, code);
    }

    @Override
    public List<SensorMonitorDto> getHisCoalfaceGas(String beginTime, String endTime, String code) {
        return safetyMapper.getHisCoalfaceGas(beginTime, endTime, code);
    }

    @Override
    public List<SensorMonitorDto> getCoalfaceOxygen(String beginTime, String endTime, String code) {
        return safetyMapper.getCoalfaceOxygen(beginTime, endTime, code);
    }

    @Override
    public List<SensorMonitorDto> getCoalfaceWindspeed(String beginTime, String endTime, String code) {
        return safetyMapper.getCoalfaceWindspeed(beginTime, endTime, code);
    }

    @Override
    public int getGasAlarmCount(String beginTime, String endTime, String code) {
        return safetyMapper.getGasAlarmCount(beginTime, endTime, code);
    }

    @Override
    public int getGasAlarmUndoneCount(String beginTime, String endTime, String code) {
        return safetyMapper.getGasAlarmUndoneCount(beginTime, endTime, code);
    }

    @Override
    public Float getWaterInflowDay(String beginTime, String endTime, String mineCode) {
        return safetyMapper.getWaterInflowDay(beginTime, endTime, mineCode);
    }

    @Override
    public List<LongViewHoleDto> getLongViewHoleData(String lastBeginTime, String lastEndTime, String mineCode) {
        return safetyMapper.getLongViewHoleData(lastBeginTime, lastEndTime, mineCode);
    }

    @Override
    public List<AreaStaffCountDto> getDustExpousreDurationPersonCount(List<String> coalfaceId, String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getDustExpousreDurationPersonCount(coalfaceId, lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<AreaStaffCountDto> getDustExpousrePersonCount(List<String> coalfaceId, String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getDustExpousrePersonCount(coalfaceId, lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<AlarmInfoDto> getCoalfaceWindspeedMaxValue(String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getCoalfaceWindspeedMaxValue(lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<GroundPressureDto> getGroundPressureData(String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getGroundPressureData(lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<OffDutyDto> getOffDutyList(String bTime, String endTime, String code) {
        return safetyMapper.getOffDutyList(bTime, endTime, code);
    }

    @Override
    public OffDutyDto getYesterdayWellOutTime(String beforeBegintime, String beforeEndTime, String code) {
        return safetyMapper.getYesterdayWellOutTime(beforeBegintime, beforeEndTime, code);
    }

    @Override
    public List<OffDutyDto> getCurrentLeaderDuty(String beginTime, String endTime, String code) {
        return safetyMapper.getCurrentLeaderDuty(beginTime, endTime, code);
    }

    @Override
    public void saveOffDutyRecord(List<OffDutyRecord> offDutyRecords) {
        safetyMapper.saveOffDutyRecord(offDutyRecords);
    }

    @Override
    public List<SensorMonitorDto> selectSensorAlarmData(String sensorType, String beginTime, String endTime, String keywords) {
        return safetyMapper.selectSensorAlarmData(sensorType, beginTime, endTime, keywords);
    }

    @Override
    public void insertCoalSpontaneousCombustionAlarm(List<CoalSpontaneousCombustionAlarm> coalSpontaneousCombustionAlarmList) {
        safetyMapper.insertCoalSpontaneousCombustionAlarm(coalSpontaneousCombustionAlarmList);
    }

    @Override
    public List<OffDutyDto> getLeaderAttendencyByTime(String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getLeaderAttendencyByTime(lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<WellOutDto> getWellOutData(String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getWellOutData(lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<BaseOverManAlarm> getOverManAlarm(String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getOverManAlarm(lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<RoofAbscissionDto> getRoofAbscissionData(String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getRoofAbscissionData(lastBeginTime, lastEndTime, code);
    }

    @Override
    public List<SupportPressureDto> getSupportPressureData(String lastBeginTime, String lastEndTime, String code) {
        return safetyMapper.getSupportPressureData(lastBeginTime, lastEndTime, code);
    }

    @Override
    public Integer getKeyAreaStaffCount(String beginTime, String endTime, String code) {
        return safetyMapper.getKeyAreaStaffCount(beginTime, endTime, code);
    }

    @Override
    public Integer getStaffCount(String beginTime, String endTime, String code) {
        return safetyMapper.getStaffCount(beginTime, endTime, code);
    }

    @Override
    public Integer getSpecialStaffCount(String beginTime, String endTime, String code) {
        return safetyMapper.getSpecialStaffCount(beginTime, endTime, code);
    }

    @Override
    public Integer getLeaderCount(String beginTime, String endTime, String code) {
        return safetyMapper.getLeaderCount(beginTime, endTime, code);
    }

    @Override
    public List<WaterEmissionAlarmDto> getWaterInflowData(String beginTime, String endTime, String code) {
        return safetyMapper.getWaterInflowData(beginTime, endTime, code);
    }

    @Override
    public List<BaseStationInfoDto> getSensorInfo(String sensorType, String keywords) {
        return safetyMapper.getSensorInfo(sensorType, keywords);
    }

    @Override
    public List<SensorDataDto> getSensorData(String sensorCode, String bTime, String eTime) {
        return safetyMapper.getSensorData(sensorCode, bTime, eTime);
    }

    @Override
    public void batchInsertSensorData(List<SensorConvertedData> resultList) {
        safetyMapper.batchInsertSensorData(resultList);
    }

    @Override
    public void batchInsertSensorPredData(List<SensorConvertedData> sensorConvertedData) {
        safetyMapper.batchInsertSensorPredData(sensorConvertedData);
    }

}
